#include <stdio.h>
#include <fstream>	//File i/0
#include <windows.h>	//kbhit
#include <conio.h>
#include <time.h>
using namespace std;
#include "game.h"

int main(int argc, char** argv)
{
	Game g;
	g.initialize();
	while (g.input != 27)
	{	
		g.draw();	//Remember:  You only have to draw if something changes
		if (_kbhit())
		{
			g.input = _getch();
			g.processInput();
		}
		else
		{
			g.input = g.idleUpdate();
			Sleep(750);
		}
	}
	return 0;
}